package com.cybersapien.comng.engine.event;

import com.cybersapien.comng.engine.event.engine.EventListenerManager;
import com.cybersapien.comng.engine.event.engine.EventManager;
import com.cybersapien.comng.engine.event.engine.IEventEngine;

public class EventHelper {

	static public void addEngineEvent(IEventEngine event) {
		EventManager em = getEventEngineManager();
		em.stackEventEngine(event);
	}

	static public void fireEvents() {
		EventManager em = getEventEngineManager();
		em.fireStackEventEngine();
	}

	static EventManager getEventEngineManager() {
		return EventManager.getInstance();
	}

	static EventListenerManager getEventListenerManager() {
		return EventListenerManager.getInstance();
	}

}
